﻿@model List<CUserList>
@using CooWork.Models;
@using CooWork.Services;

@{
    ViewBag.Title = "userlist";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<div id="main" >
<div class="controls">   
            <input type="button" value="添加用户" />
      </div>


<i class="clear"></i>

<div class="rounded_caption">
    <i class="rounded_caption_tl sprite-rounded_caption_tl"></i>
    <i class="rounded_caption_tr sprite-rounded_caption_tr"></i>
</div>

<div class="table_border">
<table class="listing highlight_row reports">
<thead>
    <tr>
        <th width="20%">用户名</th>
        <th width="20%">姓名</th>      
        <th width="10%"> 部门 </th>
        
        
        <th width="30%" class="r">
    </th></tr>
</thead>
<tbody>
    
    @{
        foreach(CUserList cu in Model)
        {
             <tr class="toggler_row">
        <td>
           @CacheSet.u2n2(cu.Userid)
        </td>
        <td>@cu.Username</td>
        
        <td>@cu.Departmentname</td>
        
        
        <td class="r">
            <div class="toggler" >
                                   
                <input type="button" onclick="edit(@(cu.Id));" value="Edit"  class="small_btn" />
                                                
                    <input type="button" value="Delete" onclick="del(@(cu.Id));"  class="small_btn" />
                
                            </div>
        </td>
    </tr>
            
        }        
    }

    

    
    
</tbody>
</table>
</div>

</div>


